<?php
require_once '../config.php';

showTestUsers();

function connectFB(){
    $params = array(
            'appId'  => FB_APP_ID,
            'secret' => FB_APP_SECRET,
            'cookie' => true,
        );
    $facebook_test = new FacebookTest($params);
    $facebook_test->setDebugLevel(1);  
    $facebook_test->getAppAccessToken();
    return  $facebook_test;
}

function showTestUsers(){
    $facebook_test = connectFB();    
    print_r($facebook_test->getPersistedTestAccounts());
}